<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>模板列表</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript" src="/PHPUnion/Home/Lib/Pintuer/jquery-1.11.0.js"></script>
<link rel="stylesheet" type="text/css" href="/PHPUnion/Home/Lib/Pintuer/pintuer.css" />
<script type="text/javascript" src="/PHPUnion/Home/Lib/Pintuer/pintuer.js"></script>
<script type="text/javascript" src="/PHPUnion/Home/Lib/Pintuer/respond.js"></script>
</head>
<body>
	<div class="container-layout">
		<!-- 导航位置 -->
		<div class="text-small text-gray height-big">
			<div class="float-left height">
				<span class="icon-home"></span>
				当前位置： 首页 -> 模板管理 -> 模板列表
			</div>
			<div class="float-right">
				<div class="radius-rounded height">
					<button type="button" onClick="location.href='<?php echo U('index');?>'" class="button radius-none bg-sub">
						<i class="icon-th-list"></i>
						模板列表
					</button>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
		<hr />
		<!-- 导航位置 End -->
		<div class="line">
			<?php if(is_array($style)): $i = 0; $__LIST__ = $style;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div style="width:255px;" class="x2 fadein-top border padding-top padding-left margin-right <?php if($vo['current'] == 1): ?>bg<?php endif; ?>">
					<img src="<?php echo ($vo["image"]); ?>" width="230" height="260" class="img-border radius-small text-center" />
					<h3 class="margin-little-bottom"><?php echo ($vo["name"]); ?></h3>
					<p class="margin-left" style="margin-bottom:0px;">作者：<?php echo ($vo["author"]); ?></p>
					<p class="margin-left" style="margin-bottom:0px;">E-mail：<?php echo ($vo["email"]); ?></p>
					<p class="margin-left" style="margin-bottom:0px;">目录：<?php echo ($vo["filename"]); ?></p>
					<?php if($vo['current'] == 1): ?><button type="button" class="button bg-main margin-bottom margin-left">
							<span class="icon-spinner rotate"></span>
							正在使用
						</button>
						<?php else: ?>
						<button type="button" class="button bg-sub margin-bottom margin-left" onClick="location.href='<?php echo U('style',array('dirName'=> $vo['filename']));?>'">
							<span class="icon-spinner rotate"></span>
							点击使用
						</button><?php endif; ?>
				</div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</div>
</body>
</html>